package com.prb.proivder.two.service;

import com.prb.api.service.WorldService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service
public class PoliceHelloService implements WorldService {


    @Override
    public String sayWorld(String msg) {

        Object ip = RpcContext.getContext().getAttachments().get("requestId");

        System.out.println("ip is :" + ip);

        System.out.println("provider 22222 service receive : " + msg);

        return "world service";

    }
}
